<cfsilent>
	<cfset initSite = false />
	<cfset clearSession = false />
	<cfif structKeyExists(url,"init") or not structKeyExists(application,"core")>
		<cfset initSite = true />
	</cfif>
	<cfif structKeyExists(url,"quit") or not structKeyExists(application,"core")>
		<cfset clearSession = true />
	</cfif>
	
	<!--- launch site --->
	<cfif initSite>
		<cfset structDelete(application,"core") />
		<cfset application.core = createObject('component','cfcs.core') />
		<cfset application.core.initSite(initSite) />
	</cfif>
	<cfif clearSession>
		<cfset structClear(session) />
	</cfif>
</cfsilent>

<cfoutput>
	#application.core.includeScripts()#
	<head>
		<title>ImageTrend Pong Tournament</title>
	</head>
	<div id="validationMessages" style="display:none;"></div>
	<div id="systemMessages" style="display:none;"></div>
	#application.u.topbarUtil.renderPongTopBar()#
	#application.u.pongUtil.renderUserList()#
</cfoutput>